import Request from './request.ts'
import InitServeConfig from '../../../config/index.ts'

const NODE_ENV = InitServeConfig.getEnv()
const httpUrl = InitServeConfig.getHttpUrl()

const envHit = NODE_ENV && Object.prototype.hasOwnProperty.call(httpUrl, NODE_ENV)

export const _baseURL = (envHit && httpUrl[NODE_ENV] ? httpUrl[NODE_ENV] : httpUrl['development'])!

export const request = new Request().request
